import request from '@/utils/request'


//字典表列表
export function listDict(dataRequest) {
	return request({
		url: '/admin/dict/multi/level/list',
		method: 'POST',
		data: dataRequest
	})
}

//字典表某子项列表
export function listDictItemByCode(dataRequest) {
	return request({
		url: '/admin/dict/multi/level/code/list',
		method: 'POST',
		data: dataRequest
	})
}

//新增字典表子项
export function addDictItem(dataRequest) {
	return request({
		url: '/admin/dict/multi/level',
		method: 'POST',
		data: dataRequest
	})
}
//修改字典表子项
export function editDictItem(dataRequest) {
	return request({
		url: '/admin/dict/multi/level',
		method: 'PUT',
		data: dataRequest
	})
}
//删除字典表子项
export function delDictItem(idList) {
	return request({
		url: '/admin/dict/multi/level/' + idList,
		method: 'DELETE',
	})
}
//禁用启用字典表子项
export function disableDictItem(dataRequest) {
	return request({
		url: '/admin/dict/multi/level/disable/flag',
		method: 'PUT',
		data: dataRequest
	})
}
